objects = main.o


main: $(objects)
	gcc -o $@ $^ -lpaho-mqtt3c

.c.o:
	gcc -c $<

.PHONY: clean
clean:
	-rm main $(objects)